﻿using CourseTeaching.WebApi.iService;
using CourseTeaching.WebApi.Model.VMModel;
using Microsoft.AspNetCore.Mvc;

namespace CourseTeaching.WebApi.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class UserController : Controller
    {
        private readonly iUserService _userService;

        public UserController(iUserService userService)
        {
            _userService = userService;
        }

        [HttpPost]
        public Res test()
        {
            return _userService.Login("1");
        }
    }
}
